package org.dromara.ai.domain.vo;

import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.ai.domain.AiWork;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 作品视图对象 ai_work
 *
 * @author Tang
 * @date 2024-12-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = AiWork.class)
public class AiWorkVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 作品ID
     */
    @ExcelProperty(value = "作品ID")
    private Long workId;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 使用人数
     */
    @ExcelProperty(value = "使用人数")
    private Long userNumber;

    /**
     * 作品标题
     */
    @ExcelProperty(value = "作品标题")
    private String title;

    /**
     * 图片地址
     */
    @ExcelProperty(value = "图片地址")
    private Long image;

    /**
     * 图片地址Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "image")
    private String imageUrl;
    /**
     * 点赞数
     */
    @ExcelProperty(value = "点赞数")
    private Long likeNumber;

    /**
     * 收藏数
     */
    @ExcelProperty(value = "收藏数")
    private Long collectNumber;

    /**
     * 对话次数
     */
    @ExcelProperty(value = "对话次数")
    private Long chatNumber;

    /**
     * 作品的内容
     */
    @ExcelProperty(value = "作品的内容")
    private String content;

    /**
     * 作品状态（0正常 1停用）
     */
    @ExcelProperty(value = "作品状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
